<template>
  <div class="global-info-table-row-wrap" :style="{width:width}">
    <div class="info-table-row-label">{{label}}</div>
    <div class="info-table-row-value">
      <slot></slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'CommonInfoTableCell',
    props: {
      label: {
        type: String,
        default: ''
      },
      width: {
        type: String,
        default: '100%'
      },
      isLink: {
        type: Boolean,
        default: false
      }
    },
    data() {
      return {}
    },
    methods: {},
    mounted() {

    }
  }
</script>

<style scoped lang="scss">
  .global-info-table-row-wrap {
    min-height: 39px;
    display: flex;

    .info-table-row-label {
      width: 130px;
      height: 100%;
      line-height: 39px;
      background-color: #f5f5f5;
      text-align: right;
      padding-right: 8px;
      box-sizing: border-box;
    }

    .info-table-row-value {
      height: 100%;
      width: calc(100% - 138px);
      line-height: 39px;
      padding-left: 8px;
      box-sizing: border-box;
    }
  }
</style>
